﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace NKD07
{
    public partial class statistics : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                LoadProductSatatistics();
            }
        }

        // load all statistics of products every month
        private void LoadProductSatatistics()
        {
            Classes.warehouse warehouse = new Classes.warehouse();
            DataTable tb = warehouse.getProductsInWarehouse(0);
            gwProductStatistics.DataSource = tb;
            gwProductStatistics.DataBind();
        }
    }
}